<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link type="text/css" rel="stylesheet" href="css/detail.css">
<script type="text/javascript" src="js/jquery-1.11.2.min.js"></script>
<script type="text/javascript">
$(document).ready(
		function(){
			var s = $("img").attr("src");
			s=s.substring(6,s.length-4);
			$("select").find("option:contains('"+s+"')").attr("selected",true);
			
			$("select").change(function(){
				var t = $("select").find("option:selected").text();
				t = "image/"+t+".jpg";
				
				$("img").attr("src",t);
			});
		});
</script>
</head>
<body>
<div class="tablediv">
<form action="addUser.do">
<table border="1" width="100%" height="200px" style="table-layout:fixed;"
cellspacing = "0" cellpadding="0">
<caption><h1>用户信息</h1></caption>
<tr><td>用户ID</td><td><input type="text" name="user_id" disabled="disabled"></td>

</tr>
<tr><td>用户名称</td><td><input type="text" name="username"></td></tr>
<tr><td>用户密码</td><td><input type="text" name="userpass"></td></tr>
<tr><td>联系电话</td><td><input type="text" name="mobilenum"></td></tr>
<tr><td>收货地址</td><td><input type="text" name="address"></td></tr>
<tr><td>备注</td><td><input type="text" name="comment"></td></tr>
<tr><td colspan="3"><button id="tijiao">提交</button></td></tr>
</table>
</form>
</div>

</body>
</html>